package com.free.front.controller.clickStatistics;

import com.deco.service.clickStatistics.ClickStatisticsService;
import com.free.common.vo.ResultModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 说明：
 * 创建人：Q879095880
 */
@Controller
@RequestMapping(value = "/clickstatistics")
public class ClickStatisticsController {
    @Autowired
    private ClickStatisticsService clickStatisticsService;

    @RequestMapping(value = "/addCount.json")
    @ResponseBody
    public ResultModel addCount(Integer playType,Integer urlType){
        clickStatisticsService.add(playType,urlType);
        return ResultModel.success();
    }
}
